import http from './public'

// 登录
export const login = (params) => {
  return http.fetchPost('/login', params)
}

// 用户信息
export const userInfo = (params) => {
  return http.fetchGet('/querySubAccount', params)
}

// 所有公司信息
export const queryAllCompany = (params) => {
  return http.fetchGet('/queryAllCompany', params)
}

// 公司信息
export const queryCompany = (params) => {
  return http.fetchGet('/queryCompany', params)
}

// 场地信息
export const querySpace = (params) => {
  return http.fetchGet('/querySpace', params)
}

export const createQrCode = (params) => {
  return http.fetchPost('/createQrCode', params)
}
